﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dynamitey.DynamicObjects;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 多平台店铺
    /// </summary>
    /// 
    public class Seller_MultiDTO
    {
        public string code { get; set; }
        public string message { get; set; }
        public string request_id { get; set; }
        public string response_time { get; set; }
       
        public Seller_MultiList data { get; set; }

    }
    public class Seller_MultiList
    {
        /// <summary>
        /// 总数
        /// </summary>
        public string total { get; set; }
        /// <summary>
        /// 亚马逊店铺id
        /// </summary>
        public List<Seller_Multi>  list { get; set; }

    }
    public class Seller_Multi
    {
        /// <summary>
        /// 店铺币种	
        /// </summary>
        public string currency { get; set; }

        /// <summary>
        /// 平台code		
        /// </summary>
        public string platform_code { get; set; }
        /// <summary>
        /// 平台名称		
        /// </summary>
        public string platform_name { get; set; }
        /// <summary>
        /// 店铺id【对应获取亚马逊店铺接口sid		
        /// </summary>
        public string sid { get; set; }

        /// <summary>
        /// 店铺ID		
        /// </summary>
        public string store_id { get; set; }
        /// <summary>
        /// 店铺名称		
        /// </summary>
        public string store_name { get; set; }
        /// <summary>
        /// 店铺同步状态		
        /// </summary>
        public string is_sync_;
        public string is_sync {

            get { return is_sync_; }

            set {
                if (value=="0") is_sync_ = "停用";
                else if (value == "1") is_sync_ = "启用";
                else is_sync_ = value;
            }
        }
        /// <summary>
        /// 店铺授权状态		
        /// </summary>
        public string status_;
        public string status {
            get { return status_; }

            set
            {
                if (value == "0") status_ = "授权失败";
                else if (value == "1") status_ = "正常授权";
                else status_ = value;
            }

        }

    }
}
